<%= form_remote_tag(:update => "slides", 
    :after => "insertWaitingImg('slides')",
  :url => {:controller => "slideshows", :action => :set_slide_duration} ) %>
<p>
  <%= hidden_field 'slideshow_image', 'id' %>
  <%= text_field 'slideshow_image', 'duration'%>
</p>
<p><%= submit_tag 'OK' %><br/>
  <%= link_to_remote('<input type="button" value="Cancel" />',
    :update => 'slides',:after => "insertWaitingImg('slides')",
     :url => {:action => :image_list, :id => @slideshow})%>
</p>
<%= end_form_tag %>